package jk.spider.util.config;

public interface ConfigConstants {
	/**** Site ********/
	public static final String CONFIG_SITE = "JKSpider.site";
	public static final String SITE_TITLE = "title";
	public static final String SITE_HOST = "host";
	public static final String SITE_ENCODE = "encode";
	
	/**** Storage *****/
	public static final String CONFIG_STORAGE = "JKSpider.storage";
	public static final String STORAGE_DRIVER = "driver";
	public static final String STORAGE_URL = "url";
	public static final String STORAGE_USER = "user";
	public static final String STORAGE_PASSWORD = "password";
	
	/***** DB ********/
	public static final String CONFIG_DB = "JKSpider.db";
	public static final String DB_DRIVER = "driver";
	public static final String DB_URL = "url";
	public static final String DB_USER = "user";
	public static final String DB_PASSWORD = "password";
	
	/**** Plugin ****/
	public static final String CONFIG_PLUGIN = "JKSpider.plugin";
	public static final String PLUGIN_CLASS = "class";
	public static final String PLUGIN_COUNT = "count";
	
	/**** Extract ****/
	public static final String CONFIG_EXTRACT = "JKSpider.extract";
	public static final String EXTRACT_CLASS = "class";
	public static final String EXTRACT_CONFIG = "config";
	
	/***** Thread Pool ******/
	public static final String CONFIG_THREAD = "JKSpider.threads";
	public static final String THREAD_SPIDER_COUNT = "spider.count";
	public static final String THREAD_THINK_COUNT = "think.count";
	public static final String THREAD_EXTRACT_COUNT = "extract.count";
	public static final String THREAD_SPIDER = "spider.enabled";
	public static final String THREAD_THINK = "think.enabled";
	public static final String THREAD_EXTRACT = "extract.enabled";
	public static final String THREAD_MONITOR = "monitor.enabled";
	
	public static final String CONFIG_THROTTLE = "JKSpider.throttle";
	public static final String THROTTLE_PROVIDER = "provider";
	public static final String THROTTLE_INTERVAL = "interval";
	public static final String THROTTLE_INTERVAL_MAX = "thinktime.max";
	public static final String THROTTLE_INTERVAL_MIN = "thinktime.min";
	
	/***** Config *********/
	public static final String CONFIG_CONFIG = "JKSpider.config";
	public static final String CONFIG_OUTPUTFILE = "outputFile";
	public static final String CONFIG_CHEAT = "cheat";
	public static final String CONFIG_COOKIE = "cookie";
	public static final String CONFIG_INDATA = "inData";
	public static final String CONFIG_CACHE = "cache";
	public static final String CONFIG_STOP = "stop";
	public static final String CONFIG_RECOUNG = "reCount";
	
	/***** Url ************/
	public static final String CONFIG_URL = "JKSpider.url";
	public static final String URL_PROVIDER = "provider";
	public static final String URL_COUNT = "count";
	public static final String URL_REG = "reg";
	public static final String URL_TYPE = "type";
	public static final String URL_CLASS = "class";
	public static final String URL_FILTER = "filter";
	public static final String URL_REVIEW = "review.enabled";
	
	/***** Seed  ******/
	public static final String CONFIG_SEED = "JKSpider.seed";
	public static final String SEED_PROVIDE = "provider";
	public static final String SEED_CLASS = "class";
	public static final String SEED_FILE = "file";
	public static final String SEED_FILE_COUNT = "file.count";
	public static final String SEED_URL = "file.url";
	public static final String SEED_PROPS = "file.props";
	public static final String SEED_ADDR = "file.addr";
	public static final String SEED_KEY = "file.key";
	
	/***** Proxy ******/
	public static final String CONFIG_PROXY = "JKSpider.proxy";
	public static final String PROXY_ENABLED = "enabled";
	public static final String PROXY_COUNT = "count";
	public static final String PROXY_IP = "ip";
	public static final String PROXY_PORT = "port";
	public static final String PROXY_FREQ = "freq";
	
	public static final String PROXY_THREAD = "thread";
	public static final String PROXY_MONITOR_URL = "monitor.url";
	public static final String PROXY_URL = "url";
	public static final String PROXY_URL_COUNT = "url.count";
	public static final String PROXY_REG = "reg";
	public static final String PROXY_REG_IP = "reg.ip";
	public static final String PROXY_REG_PORT = "reg.port";
	
	/******* MSSQL ********/
	public static final String CONFIG_MSSQL = "JKSpider.ms";
	public static final String MSSQL_DRIVER = "driver";
	public static final String MSSQL_URL = "url";
	public static final String MSSQL_USERNAME = "username";
	public static final String MSSQL_PASSWORK = "password";
	public static final String MSSQL_TABLE = "table";

	public static final int SLEEP = 10;
}
